package svc

import (
	"activity/activityRpc/activityrpcclient"
	"activity/api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config      config.Config
	ActivityRpc activityrpcclient.ActivityRpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		ActivityRpc: activityrpcclient.NewActivityRpc(zrpc.MustNewClient(c.ActivityRpc)),
	}
}
